package com.xq.shop.vo;

public class UploadResult {

	public final static Integer SUCCESS = 0;
	public final static Integer FAIL = 1;
	
	private Integer error;
	private String url;
	private String message;
	
	public UploadResult() {
		this.error = 0;
		this.url = "";
		this.message = "";
	}
	
	public UploadResult(Integer error, String url, String msg) {
		this.error = error;
		this.url = url;
		this.message = msg;
	}
	
	public UploadResult(String url) {
		this.error = 0;
		this.url = url;
		this.message = "";
	}
	
	public UploadResult(String url, String msg){
		this.error = 0;
		this.url = url;
		this.message = msg;
	}
	
	public Integer getError() {
		return error;
	}
	public void setError(Integer error) {
		this.error = error;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
}
